package com.dragon.common.modules.file.web.model.result;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author Chris Chan
 * Create On 2025/8/28 下午3:47
 * Use for:
 * Explain:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "Base64结果")
public class Base64Result implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "Base64字符串", example = "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+P+/HgAFhAJ/wlseKgAAAABJRU5ErkJggg==")
    private String base64;

    public static Base64Result create(String base64) {
        return new Base64Result(base64);
    }

    public static Base64Result of(String base64) {
        return new Base64Result(base64);
    }
}
